﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Mail;
using System.Web;
using System.Web.UI;

namespace CRMExam.Helpers
{
    public static class Mail
    {
        public static void SendMail(MailMessage message)
        {
            var client = new SmtpClient("smtp.gmail.com", 587)
            {
                Credentials = new NetworkCredential("vladimirthecrazycat@gmail.com", "vladimir1111"),
                EnableSsl = true
            };
            client.Send(message);

        }
    }
}